//
//  Diagnostic.m
//  iDent
//
//  Created by Marius Corega on 7/12/09.
//  Copyright 2009 Marius Corega. All rights reserved.
//

#import "Diagnostic.h"


@implementation Diagnostic

-(id) initWithServerURL:(NSURL*) url
{
	NSMutableDictionary* d = [NSMutableDictionary dictionary];
	[d setObject:@"diagnostic" forKey:@"tabel"];
	self = [super initWithServerURL:url postDict:d];
	return self;
}

-(BOOL) addForPacientWithID:(NSString*) pacientID
{
	NSMutableDictionary* dict = [NSMutableDictionary dictionary];
	[dict setObject:pacientID forKey:@"pacientID"];
	
	return [self addElement:dict]==nil?NO:YES;
}

- (NSMutableArray*)diagnostic
{
	return _elemente;
}


@end
